import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import './index.css'
import { RouterProvider } from 'react-router-dom'
import routers from './router'
// 全局屏蔽控制台输出（生产或调试完成后启用）
// if (typeof window !== 'undefined') {
//   const noop = () => {}
//   console.log = noop
//   console.warn = noop
//   console.info = noop
//   console.error = noop
// }

// React 19 中 createRoot 的用法保持不变
const root = createRoot(document.getElementById('root')!)
root.render(
  <StrictMode>
   <RouterProvider router={routers}/>
  </StrictMode>
)
